/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ssi.mrms.model;

import java.io.Serializable;
import java.util.Collection;

import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author jirapatjantsakool
 */
public class RMfruhdrModel extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer fruhid;
    private String fruhsdat;
    private String fruhedat;
    private String fruhstime;
    private String fruhedtime;
    private String fruhcreby;
    private String fruhcredat;
    private String fruhupdby;
    private String fruhupddat;
    private RMrmlstModel rlrmid;
    private Collection<RMfrudtlModel> rmfrudtlCollection;
    private RMfrudtlModel rMfrudtlModel;
    private String fruhpaystat;

    public RMfruhdrModel() {
    }

    public RMfruhdrModel(Integer fruhid) {
        this.fruhid = fruhid;
    }

    public Integer getFruhid() {
        return fruhid;
    }

    public void setFruhid(Integer fruhid) {
        this.fruhid = fruhid;
    }


    public String getFruhcreby() {
        return fruhcreby;
    }

    public void setFruhcreby(String fruhcreby) {
        this.fruhcreby = fruhcreby;
    }


    public String getFruhupdby() {
        return fruhupdby;
    }

    public void setFruhupdby(String fruhupdby) {
        this.fruhupdby = fruhupdby;
    }



    public String getFruhsdat() {
		return fruhsdat;
	}

	public void setFruhsdat(String fruhsdat) {
		this.fruhsdat = fruhsdat;
	}

	public String getFruhedat() {
		return fruhedat;
	}

	public void setFruhedat(String fruhedat) {
		this.fruhedat = fruhedat;
	}

	public String getFruhstime() {
		return fruhstime;
	}

	public void setFruhstime(String fruhstime) {
		this.fruhstime = fruhstime;
	}

	public String getFruhedtime() {
		return fruhedtime;
	}

	public void setFruhedtime(String fruhedtime) {
		this.fruhedtime = fruhedtime;
	}

	public String getFruhcredat() {
		return fruhcredat;
	}

	public void setFruhcredat(String fruhcredat) {
		this.fruhcredat = fruhcredat;
	}

	public String getFruhupddat() {
		return fruhupddat;
	}

	public void setFruhupddat(String fruhupddat) {
		this.fruhupddat = fruhupddat;
	}

	public RMrmlstModel getRlrmid() {
        return rlrmid;
    }

    public void setRlrmid(RMrmlstModel rlrmid) {
        this.rlrmid = rlrmid;
    }

    @XmlTransient
    public Collection<RMfrudtlModel> getRmfrudtlCollection() {
        return rmfrudtlCollection;
    }

    public void setRmfrudtlCollection(Collection<RMfrudtlModel> rmfrudtlCollection) {
        this.rmfrudtlCollection = rmfrudtlCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (fruhid != null ? fruhid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RMfruhdrModel)) {
            return false;
        }
        RMfruhdrModel other = (RMfruhdrModel) object;
        if ((this.fruhid == null && other.fruhid != null) || (this.fruhid != null && !this.fruhid.equals(other.fruhid))) {
            return false;
        }
        return true;
    }


    
	@Override
	public String toString() {
		return "RMfruhdrModel [fruhid=" + fruhid + ", fruhsdat=" + fruhsdat
				+ ", fruhedat=" + fruhedat + ", fruhstime=" + fruhstime
				+ ", fruhedtime=" + fruhedtime + ", fruhcreby=" + fruhcreby
				+ ", fruhcredat=" + fruhcredat + ", fruhupdby=" + fruhupdby
				+ ", fruhupddat=" + fruhupddat + ", rlrmid=" + rlrmid
				+ ", rmfrudtlCollection=" + rmfrudtlCollection
				+ ", rMfrudtlModel=" + rMfrudtlModel + ", fruhpaystat="
				+ fruhpaystat + "]";
	}

	
	public RMfrudtlModel getrMfrudtlModel() {
		return rMfrudtlModel;
	}

	public void setrMfrudtlModel(RMfrudtlModel rMfrudtlModel) {
		this.rMfrudtlModel = rMfrudtlModel;
	}

	public String getFruhpaystat() {
		return fruhpaystat;
	}

	public void setFruhpaystat(String fruhpaystat) {
		this.fruhpaystat = fruhpaystat;
	}
    
}
